Component({
  data: {
    selected: 0,
    color: "#8E8E93",
    selectedColor: "#1A96FF",
    list: [{
      "pagePath": "/pages/home/index",
      "iconPath": "t-icon-shouyeicon-1",
      "selectedIconPath": "t-icon-shouyeicon",
      "text": "首页"
    },
    {
      "pagePath": "/pages/data/index",
      "iconPath": "t-icon-a-Group44",
      "selectedIconPath": "t-icon-a-Group44"
    },
    {
      "pagePath": "/pages/mine/index",
      "iconPath": "t-icon-a-shouyeiconbeifen2",
      "selectedIconPath": "t-icon-a-shouyeiconbeifen2-1",
      "text": "我的"
    }]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({ url })
      this.setData({
        selected: data.index
      })
    }
  }
})
